package com.ysu.shop.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysu.shop.pojo.BasePojo;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 耿志龙
 * @since 2020-10-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("goods")
public class Goods extends BasePojo {

    private static final long serialVersionUID = 1L;

    /**
     * 类别id
     */
    @TableField("category_id")
    private Integer categoryId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;


    /**
     * 商品名称
     */
    @TableField("name")
    private String name;

    /**
     * 主图地址
     */
    @TableField("img")
    private String img;

    /**
     * 商品详情
     */
    @TableField("detail")
    private String detail;

    /**
     * 商品价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 库存量
     */
    @TableField("stock")
    private Integer stock;


}
